import { ApiProperty } from '@nestjs/swagger';

export class GoodsAddDTO {
  @ApiProperty({
    description: '商品名',
  })
  name: string;

  @ApiProperty({
    description: '商品描述',
  })
  description: string;

  @ApiProperty({
    description: '商品主图',
  })
  mainImage: string;

  @ApiProperty({
    description: '商品图片',
  })
  imageList: string[];

  @ApiProperty({
    description: '商品价格',
  })
  price: number;

  @ApiProperty({
    description: '商品库存',
  })
  stock: number;

  @ApiProperty({
    description: '商品详情',
  })
  detail: string;

  @ApiProperty({
    description: '商品id',
  })
  categoryId: number;
}
